// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";

/** addFriend POST /api/rice/add/friend */
export async function addFriendUsingPost(
  body: API.UserAddFriendRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponselong>("/api/rice/add/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** agreeFriend POST /api/rice/agree/friend */
export async function agreeFriendUsingPost(
  body: API.UserAgreeFriendRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponselong>("/api/rice/agree/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteFriend POST /api/rice/delete/friend */
export async function deleteFriendUsingPost(
  body: { friendsUserAccount: string | undefined },
  options?: { [p: string]: any },
) {
  return request<API.BaseResponselong>("/api/rice/delete/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** queryFriend POST /api/rice/query/friend */
export async function queryFriendUsingPost(
  body: API.UserQueryFriendRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFunRiceUser>("/api/rice/query/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** queryFriendList POST /api/rice/query/friend/list */
export async function queryFriendListUsingPost(
  body: API.UserQueryFriendListRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListMap>("/api/rice/query/friend/list", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** queryFriendMessageRequest POST /api/rice/query/friend/request */
export async function queryFriendMessageRequestUsingPost(options?: {
  [key: string]: any;
}) {
  return request<API.BaseResponseListFunRiceUserRelationshipAddthumb>(
    "/api/rice/query/friend/request",
    {
      method: "POST",
      ...(options || {}),
    }
  );
}

/** queryFriendShipList POST /api/rice/query/friendship/list */
export async function queryFriendShipListUsingPost(
  body: API.UserQueryFriendShipListRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListFunRiceUserRelationshipAddthumb>(
    "/api/rice/query/friendship/list",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** rejectFriend POST /api/rice/reject/friend */
export async function rejectFriendUsingPost(
  body: API.UserRejectFriendRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponselong>("/api/rice/reject/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** renameFriend POST /api/rice/rename/friend */
export async function renameFriendUsingPost(
  body: API.UserRmarksFriendRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponselong>("/api/rice/rename/friend", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
